package cn.imnaer.service.rpc.userinfo;

import cn.imnaer.service.commom.exception.InviteErrorException;
import cn.imnaer.service.commom.exception.UserAlreadyHasException;
import cn.imnaer.service.persistence.model.User;
import cn.imnaer.service.rest.resquest.model.UserLoginParams;
import cn.imnaer.service.rest.resquest.model.UserRegisterParams;
import cn.imnaer.service.rest.view.model.UserView;


public interface UserComponentRpcApi {
    public User   login(UserLoginParams loginParams);
    public User createUser(UserRegisterParams registerParams) throws UserAlreadyHasException, InviteErrorException;
    public User  getUserInfo(String userId);




}
